package com.syw.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * SywUser entity. @author MyEclipse Persistence Tools
 */

public class SywUser implements java.io.Serializable {

	// Fields

	private int id;
	private SywRole sywRole;
	private SywEmp sywEmp;
	private String name;
	private String password;
	private Set sywRewardrecords = new HashSet(0);
	private Set sywMaintains = new HashSet(0);

	// Constructors

	/** default constructor */
	public SywUser() {
	}

	/** minimal constructor */
	public SywUser(SywRole sywRole, SywEmp sywEmp, String name, String password) {
		this.sywRole = sywRole;
		this.sywEmp = sywEmp;
		this.name = name;
		this.password = password;
	}

	/** full constructor */
	public SywUser(SywRole sywRole, SywEmp sywEmp, String name,
			String password, Set sywRewardrecords, Set sywMaintains) {
		this.sywRole = sywRole;
		this.sywEmp = sywEmp;
		this.name = name;
		this.password = password;
		this.sywRewardrecords = sywRewardrecords;
		this.sywMaintains = sywMaintains;
	}

	// Property accessors

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public SywRole getSywRole() {
		return this.sywRole;
	}

	public void setSywRole(SywRole sywRole) {
		this.sywRole = sywRole;
	}

	public SywEmp getSywEmp() {
		return this.sywEmp;
	}

	public void setSywEmp(SywEmp sywEmp) {
		this.sywEmp = sywEmp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set getSywRewardrecords() {
		return this.sywRewardrecords;
	}

	public void setSywRewardrecords(Set sywRewardrecords) {
		this.sywRewardrecords = sywRewardrecords;
	}

	public Set getSywMaintains() {
		return this.sywMaintains;
	}

	public void setSywMaintains(Set sywMaintains) {
		this.sywMaintains = sywMaintains;
	}

}